<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>vue的v-text与v-html</title>
  <script src="js/vuejs-2.5.16.js"></script>

</head>
<body>
    <div id="app">
        <div style="color: aqua" v-text="msg1"></div>
        <div style="color: aquamarine" v-html="msg2"></div>
    </div>
    <script type="text/javascript">
      new Vue({
        el:"#app",
        data:{
          msg1:"我你爹",
          msg2:"<h1>我你爹</h1>"
        }
      });
    </script>
</body>
</html>